-- GENERATED SPELL FOR [Sunseeker Chemist] --


function spell0_19486(pUnit, Event) --@Fire Breath Potion,Self--
pUnit:FullCastSpellOnTarget(34359,pUnit)
pUnit:RegisterEvent('Sorts_19486', 1700, 1)
end

function spell1_19486(pUnit, Event) --@Fire Breath Potion,Self--
pUnit:FullCastSpellOnTarget(39128,pUnit)
pUnit:RegisterEvent('Sorts_19486', 1700, 1)
end

function spell2_19486(pUnit, Event) --@Vial of Poison,n/a--
pUnit:FullCastSpellOnTarget(34358,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19486', 11000, 1)
end

function spell3_19486(pUnit, Event) --@Vial of Poison,n/a--
pUnit:FullCastSpellOnTarget(39127,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19486', 11000, 1)
end

function Sorts_19486(pUnit, Event)
local choix_sorts_19486 = math.random(0, 3)
if choix_sorts_19486 == 0 then
pUnit:RegisterEvent('spell0_19486', 1, 1)
end
if choix_sorts_19486 == 1 then
pUnit:RegisterEvent('spell1_19486', 1, 1)
end
if choix_sorts_19486 == 2 then
pUnit:RegisterEvent('spell2_19486', 1, 1)
end
if choix_sorts_19486 == 3 then
pUnit:RegisterEvent('spell3_19486', 1, 1)
end
end

function mob19486_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19486', math.random(1500, 3000), 1)
end

function mob19486_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19486_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19486_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19486, 1, 'mob19486_Action')
RegisterUnitEvent(19486, 2, 'mob19486_Leave')
RegisterUnitEvent(19486, 3, 'mob19486_Kill')
RegisterUnitEvent(19486, 4, 'mob19486_Die')
